<div class="row">
	<div class="col-sm-6">
		<section class="panel">
			<header class="bg-success panel-heading font-bold" style="background-color:#6c0a00"> Ubah Biodata Pengguna </header>
			<div class="panel-body">
				<form class="form-horizontal" method="post" action="<?php echo site_url('admin/aduserm/submitEdit');?>">
					<div class="form-group">
						<label class="col-sm-4 control-label">Nama lengkap</label>
						<div class="col-sm-7">
							<input type="text" name="nama_lengkap" class="form-control" data-required="true" value="<?php echo $users[0]['NAMA_LENGKAP']; ?>">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-4 control-label">NIP</label>
						<div class="col-sm-7">
							<input type="text" name="NIP" class="form-control" data-required="true" value="<?php echo $users[0]['NIP']; ?>">
						</div>
					</div>
					<div class="line line-dashed line-lg pull-in"></div>			
					<div class="line line-dashed line-lg pull-in"></div>
					<div class="form-group">
						<label class="col-sm-4 control-label">Tempat lahir</label>
					<div class="col-sm-7">
						<input type="text" name="tempat_lahir" class="form-control" data-required="true" value="<?php echo $users[0]['TEMPAT_LAHIR']; ?>">
					</div>
					</div>
					<div class="line line-dashed line-lg pull-in"></div>
					<div class="form-group">
						<label class="col-sm-4 control-label">Tanggal lahir</label>
						<div class="col-sm-7">
							<input name="tanggal_lahir" class="datepicker-input form-control" data-required="true" type="text" data-date-format="dd-mm-yyyy" value="<?php //$date = explode('-', $users[0]['TGL_LAHIR']); echo $date[2].'-'.$date[1].'-'.$date[0]; ?>">
						</div>
					</div>
					<div class="line line-dashed line-lg pull-in"></div>
					<div class="form-group">
						<label class="col-sm-4 control-label">Jenis kelamin</label>
						<div class="col-sm-7">
							<div class="radio-inline">
								<label>
									<input type="radio" name="jenisk" id="optionsRadios1" value="1" <?php if($users[0]['JENIS_KELAMIN'] == 1)echo 'checked'; ?>>
									Laki-laki
								</label>
							</div>
							<div class="radio-inline">
								<label>
									<input type="radio" name="jenisk" id="optionsRadios2" value="2" <?php if($users[0]['JENIS_KELAMIN'] == 2)echo 'checked'; ?>>
									Perempuan
								</label>
							</div>
						</div>
					</div>
					<div class="line line-dashed line-lg pull-in"></div>
						<div class="form-group">
						<label class="col-sm-4 control-label">Alamat</label>
						<div class="col-sm-7">
							<input type="text" name="alamat" class="form-control" data-required="true" value="<?php echo $users[0]['ALAMAT']; ?>">
						</div>
					</div>
					<div class="line line-dashed line-lg pull-in"></div>
					<div class="form-group">
						<label class="col-sm-4 control-label">Nomor telepon</label>
						<div class="col-sm-7">
							<input type="text" name="nomor_telepon" class="form-control" data-required="true" value="<?php echo $users[0]['TELP']; ?>">
						</div>
					</div>
					<div class="line line-dashed line-lg pull-in"></div>
					<div class="form-group">
						<label class="col-sm-4 control-label">Nomor handphone</label>
						<div class="col-sm-7">
							<input type="text" name="hp" class="form-control" data-required="true"value="<?php echo $users[0]['HP']; ?>">
						</div>
					</div>			
				<!--/form-->
			</div>
		</section>
	</div>
	<div class="col-sm-6">
		<section class="panel">
			<header class="bg-success panel-heading font-bold" style="background-color:#6c0a00"> Ubah Data Sign in </header>
			<div class="panel-body form-horizontal">
				<!--form class="form-horizontal" method="get"-->
					<div class="form-group">
						<label class="col-sm-2 control-label">Email</label>
						<div class="col-sm-9">
							<input type="text" name="email" class="form-control" data-required="true" value="<?php echo $users[0]['EMAIL']; ?>" disabled>
						</div>
					</div>			
					<div class="line line-dashed line-lg pull-in"></div>
					<div class="form-group">
						<label class="col-sm-2 control-label">Username</label>
						<div class="col-sm-9">
							<input type="text" name="username" class="form-control" data-required="true" value="<?php echo $users[0]['USERNAME']; ?>" disabled>
						</div>
					</div>			
					<div class="line line-dashed line-lg pull-in"></div>
					<div class="form-group">
						<label class="col-sm-2 control-label">Role</label>
						<div class="col-sm-9">
							<select name="role" class="form-control m-b">
								<option>Pilih Role</option>
								<option value="1" <?php if($users[0]['ROLE'] == 1)echo 'selected'; ?>>Administrator</option>
								<option value="2" <?php if($users[0]['ROLE'] == 2)echo 'selected'; ?>>Pencetak Legalisir</option>
								<option value="3" <?php if($users[0]['ROLE'] == 3)echo 'selected'; ?>>Verifikator</option>
								<!--<option value="4" <?php if($users[0]['ROLE'] == 4)echo 'selected'; ?>>Kepala dinas</option>-->
								<!--<option value="5" <?php if($users[0]['ROLE'] == 5)echo 'selected'; ?>>Sekretaris</option>-->
							</select>
						</div>
					</div>
					<div class="line line-dashed line-lg pull-in"></div>
					<div class="form-group">
						<label class="col-sm-2 control-label">Password</label>
						<div class="col-sm-9">
							<input type="password" name="password" class="form-control" data-required="true" value="*********">
						</div>
					</div>
					<div class="line line-dashed line-lg pull-in"></div>
					<div class="form-group">
						<label class="col-sm-2 control-label">Status</label>
						<div class="col-sm-9">
							<select name="status" class="form-control m-b">
								<option value="1" <?php if($users[0]['STATUS'] == 1) echo 'selected';?>>Aktif</option>
								<option value="0" <?php if($users[0]['STATUS'] == 0) echo 'selected';?>>Tidak Aktif</option>
							</select>
						</div>
					</div>					
					<div class="form-group">			
						<div class="col-lg-11 control-label">
							<div class="doc-buttons">
								<a href="<?php echo site_url('admin/aduserm/userM');?>" class="btn btn-sm btn-info"><i class="fa fa-arrow-circle-left text"></i><span class="text"> Kembali</span></a>
								<!--a href="<?php echo site_url('admin/aduserm/userM');?>" class="btn btn-sm btn-info"><i class="fa fa-edit text"></i><span class="text"> Simpan</span></a-->
								<input type="hidden" name="id_user" value="<?php echo $users[0]['ID_USER'];?>"></input>
								<input type="submit" class="btn btn-sm btn-info" value="Simpan"></input>
							</div>
						</div>				
					</div>						
				</form>
			</div>
		</section>
	
	</div>
</div>